This block interfaces with
LightSensorArray from
mindsensors.com.
This block will not work with NXTLineLeader
sensor.
Note: Ensure to calibrate your sensor
for your environment.
Display Settings
- Indicates the Port on which this sensor would be connected.
- Indicates operation that will be performed by this block
instance (you can change this on the control panel of this
block).
- Data input/output plugs.
Configuring the LightSensorArray Block
- NXT's port to connect this sensor.
- The I2C address of this sensor.
- Operation performed by this instance of the block, Supported
Operations are as follows:
- Read Calibrated Values.
- Read un-calibrated Values
- Calibrate White Color **
- Calibrate Black Color **
- Wakeup
- Sleep
** Use these Operations only if you are writing a program on NXT
that will re-calibrate the sensor.
Read 'Calibration' section below if you need to calibrate before
using it.
LightSensorArray Block's Data Hub Plugs

The plugs are as follows:
- Sensor 1 Reading
- Sensor 2 Reading
- Sensor 3 Reading
- Sensor 4 Reading
- Sensor 5 Reading
- Sensor 6 Reading
- Sensor 7 Reading
- Sensor 8 Reading
- Operation
- Yes/No - Boolean
indicator for communication error (if any).
Calibration
Calibration process requires you to 'Teach' the sensor your
white color and Black color. The Block helps you perform these
steps.
Connect your NXT to your PC using USB cable (not Bluetooth) and
connect the sensor to NXT on appropriate port, then click on
LightSensorArray icon in the program area.
Your panel would display following:

Calibrate Now button (1) will be active, and the sensor
information will be displayed in the area below (2).
To calibrate, click on Calibrate Now button, which will display
further instructions in area (3).
Follow the on-screen instructions to complete calibration steps.
If you need more details, please refer to
User
Guide.